<include file="Public/min-header"/>
<div class="wrapper">
    <!-- Content Header (Page header) -->
   <include file="Public/breadcrumb"/>
    <section class="content">
    <!-- Main content -->
    <!--<div class="container-fluid">-->
    <div class="row">
      <div class="col-sm-12">
        <div class="panel panel-default">
            <div class="pull-right">
                <a href="javascript:history.go(-1)" data-toggle="tooltip" title="" class="btn btn-default" data-original-title="返回"><i class="fa fa-reply"></i></a>
            </div>
            <div class="panel-heading">
                <h3 class="panel-title"><i class="fa fa-list"></i> 添加会员</h3>
            </div>
            <div class="panel-body">
                <form action="" method="post" onsubmit="return checkUserUpdate(this);" >
                    <table class="table table-bordered">
                    <tbody>
                    <tr>
                        <td class="col-sm-2">姓名:</td>
                        <td ><input type="text" class="form-control" name="nickname" value=""></td>
                        <td></td>
                    </tr>
                   
                   <input type="hidden" name="password" value='123456'>
                    <tr>
                        <td>性别:</td>
                        <td id="order-status">
                            <input name="sex" type="radio" value="0" <if condition="$user['sex'] eq 0">checked</if> >保密
                            <input name="sex" type="radio" value="1" <if condition="$user['sex'] eq 1">checked</if> >男
                            <input name="sex" type="radio" value="2" <if condition="$user['sex'] eq 2">checked</if> >女
                        </td>
                        <td></td>
                    </tr>
                   <tr>
                        <td>详细地址:</td>
                        <td>
                            <input class="form-control" type="text" name="dizhi">
                        </td>
                        <td></td>
                    </tr>
					<tr style="display:none">
                        <td>身份证号码:</td>
                        <td>
                            <input class="form-control" type="text" name="shenfenzheng">
                        </td>
                        <td></td>
                    </tr>
					<tr style="display:none">
                        <td>工作单位:</td>
                        <td>
                            <input class="form-control" type="text" name="danwei">
                        </td>
                        <td></td>
                    </tr><tr>
                        <td>年龄:</td>
                        <td>
                            <input class="form-control" type="text" name="age">
                        </td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>手机:</td>
                        <td>
                            <input type="text" class="form-control" name="mobile">
                            <input type="hidden" name="seller_id" value="{$seller_id['store_id']}">
                        </td>
                    </tr>
          
                   
					
					<tr>
                        <td>第一栏</td>
                        <td>
                        
                    <?php $i = 1;?>
					<foreach name='bz[0]' item ='v'>
					
						<input type="checkbox" name="tizheng1[]" value="{$v.bz_name}" >{$v.bz_name}
						<?php
						 if($i%5 == 0) echo "<br>";
						 $i++;
						?>
						</foreach></td>
                    </tr>
					
					<tr>
                        <td>第二栏</td>
                        <td>
                        
                       
                    <?php $i = 1;?>
					<foreach name='bz[1]' item ='v'>
						<input type="checkbox" name="tizheng2[]" value="{$v.bz_name}" >{$v.bz_name}
						<?php
						 if($i%5 == 0) echo "<br>";
						 $i++;
						?>
						</foreach></td>
                    </tr>
					
					
					<tr>
                        <td>心脑血管方面</td>
                        <td>
                        
                       
                    <?php $i = 1;?>
					<foreach name='bz[2]' item ='v'>
						<input type="checkbox" name="tizheng3[]" value="{$v.bz_name}" >{$v.bz_name}
						<?php
						 if($i%5 == 0) echo "<br>";
						 $i++;
						?>
						</foreach></td>
                    </tr>
					
					
					<tr>
                        <td>泌尿系统方面</td>
                        <td>
                        
                       
                    <?php $i = 1;?>
					<foreach name='bz[3]' item ='v'>
						<input type="checkbox" name="tizheng3[]" value="{$v.bz_name}" >{$v.bz_name}
						<?php
						 if($i%5 == 0) echo "<br>";
						 $i++;
						?>
						</foreach></td>
                    </tr>
					
					
					<tr>
                        <td>骨关节方面</td>
                        <td>
                        
                       
                    <?php $i = 1;?>
					<foreach name='bz[4]' item ='v'>
						<input type="checkbox" name="tizheng3[]" value="{$v.bz_name}" >{$v.bz_name}
						<?php
						 if($i%5 == 0) echo "<br>";
						 $i++;
						?>
						</foreach></td>
                    </tr>
					
					<tr>
                        <td>其他病症</td>
                        <td>
                        
                       
                    <?php $i = 1;?>
					<foreach name='bz[5]' item ='v'>
						<input type="checkbox" name="tizheng3[]" value="{$v.bz_name}" >{$v.bz_name}
						<?php
						 if($i%5 == 0) echo "<br>";
						 $i++;
						?>
						</foreach></td>
                    </tr>
					<tr>
                        <td>个人性格</td>
                        <td>
                        
                    <?php $i = 1;?>
                       
					<foreach name='bz[6]' item ='v'>
						<input type="checkbox" name="tizheng4[]" value="{$v.bz_name}" >{$v.bz_name}
						<?php
						 if($i%5 == 0) echo "<br>";
						 $i++;
						?>
						</foreach></td>
                    </tr>
					<tr>
                        <td>舌苔</td>
                        <td>
                        
                       
                    <?php $i = 1;?>
					<foreach name='bz[7]' item ='v'>
						<input type="checkbox" name="tizheng5[]" value="{$v.bz_name}" >{$v.bz_name}
						<?php
						 if($i%5 == 0) echo "<br>";
						 $i++;
						?>
						</foreach></td>
                    </tr>
					
					<tr>
						<td>最想解决的疾病</td>
						<td><textarea rows="4" cols="120" placeholder="最想解决的疾病" name="ywdc" ></textarea></td>
					</tr>

                    <tr>
                        <td>病例</td>
                        <td><textarea rows="4" cols="120" placeholder="病例描述" name="bingli" ></textarea></td>
                    </tr>
					<tr>
                                    <td>用户头像：</td>
                                    <td><div style="width: 200px;height: 80px;">
                                    		 <img height="80" id="store_logo" src="<empty name='store.store_logo'><else/>{$store.store_logo}</empty>" nc_type="store_label">
         								 </div>
         								 <input type="hidden" name="store_logo" value="{$store.store_logo}">
                         		 		<input type="button" class="button" onClick="GetUploadify(1,'store_logo','user','callback1')"  value="上传头像"/>
                                   </td>
                                </tr>
                        <td>理疗师</td>
                       <td>
                        <select name ='tuixiao_id'>
                            <option value="0"> 无</option>
                           <foreach name="list" item="vo" >
                                <option value ="{$vo.user_id}">{$vo.nickname}</option>
                        </foreach>
                            
                        </select></td>
                    </tr>
                    <tr>
                    <td>添加时间</td>
                    <td>
                            <input class="form-control"  type="date"  name="reg_time" />
                    </td>

                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <button type="submit" class="btn btn-info">
                                <i class="ace-icon fa fa-check bigger-110"></i> 保存
                            </button>
                            <input type="reset" class="btn btn-default pull-right" value="重置">
                        </td>
                    </tr>
                    </tbody>
                </table>
                </form>

            </div>
        </div>
 	  </div> 
    </div>    <!-- /.content -->
   </section>
</div>
<script>
    function checkUserUpdate(){
       
        var mobile = $('input[name="mobile"]').val();
        var password = $('input[name="password"]').val();
        var error ='';
        if(password == ''){
            error += "密码不能为空\n";
        }
		if(password.length<6 || password.length>16){
			error += "密码长度不正确\n";
		}
        if( mobile == ''){
            error += "手机号码填写有误\n";
        }
        if(error){
            layer.alert(error, {icon: 2});  //alert(error);
            return false;
        }
        return true;

    }
	function callback1(img_str){
	
	$('input[name="store_logo"]').val(img_str);
	$('#store_logo').attr('src',img_str);
}
</script>

</body>
</html>